package utility

import (
	"path/filepath"
	"os"
	"strings"
	"fmt"
)

func GetProgrameDirectory() (string,error) {
	dir,err := filepath.Abs(filepath.Dir(os.Args[0]))
	if err != nil{
		fmt.Println(err)
		return "",err
	}
	return strings.Replace(dir,"\\","/",-1),nil
}